//
//  KFDPriceLabel.m
//  KFD
//
//  Created by Lucky Luke on 8/13/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDMAPriceLabel.h"

@implementation KFDMAPriceLabel

-(void)setDiagramPoint:(KFDDiagramPoint *)diagramPoint
{
    self.priceLabel.text=[NSString stringWithFormat:@"%.2f",diagramPoint.price.floatValue];
    self.paramLabel.text=@"(5,10,20)";
    self.ma1Label.text=[NSString stringWithFormat:@"MA1:%.2f",((NSNumber*)diagramPoint.ma[0]).floatValue];
    self.ma2Label.text=[NSString stringWithFormat:@"MA2:%.2f",((NSNumber*)diagramPoint.ma[1]).floatValue];
    self.ma3Label.text=[NSString stringWithFormat:@"MA3:%.2f",((NSNumber*)diagramPoint.ma[2]).floatValue];
}

@end
